package com.ljq.demo.product.service.impl;

import com.ljq.demo.product.dao.ProductDao;
import com.ljq.demo.product.service.ProductService;
import com.ljq.entity.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author 罗集强
 * @Date 2022/5/13 18:01
 */
@Service
public class ProductServiceImpl implements ProductService {
    @Autowired
    private ProductDao productDao;

    @Override
    public Product findByPid(Integer pid) {
        return productDao.findById(pid).get();
    }

}
